import request from '@/utils/request.js'

//添加班级
export const CourseAddService = (courseData) => {
    return request.post('/course', courseData)
}

//修改班级
export const CourseUpdateService = (courseData) => {
    return request.put('/course', courseData)
}

//删除班级
export const CourseDeleteService = (id) => {
    return request.delete('/course?id=' + id)
}


//搜索获取班级信息
export const CourseListBySearchService = (input,select,currentPage,pageSize) =>{
    return request.get('/course/search', {
        params: {
            input: input,
            select: select,
            page: currentPage,
            size: pageSize
        }
    })
}

export const CourseListAllSerivce = () =>{
    return request.get('/course/all')
}


//搜索获取专业信息
export const CourseListBySearchTeacherService = (input,select,teacherId,currentPage,pageSize) =>{
    return request.get('/course/searchTeacher', {
        params: {
            input: input,
            select: select,
            teacherId:teacherId,
            page: currentPage,
            size: pageSize
        }
    })
}